package com.workManager.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TbPaymentPlanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbPaymentPlanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPaymentIdIsNull() {
            addCriterion("PAYMENT_ID is null");
            return (Criteria) this;
        }

        public Criteria andPaymentIdIsNotNull() {
            addCriterion("PAYMENT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andPaymentIdEqualTo(Integer value) {
            addCriterion("PAYMENT_ID =", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdNotEqualTo(Integer value) {
            addCriterion("PAYMENT_ID <>", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdGreaterThan(Integer value) {
            addCriterion("PAYMENT_ID >", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PAYMENT_ID >=", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdLessThan(Integer value) {
            addCriterion("PAYMENT_ID <", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdLessThanOrEqualTo(Integer value) {
            addCriterion("PAYMENT_ID <=", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdIn(List<Integer> values) {
            addCriterion("PAYMENT_ID in", values, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdNotIn(List<Integer> values) {
            addCriterion("PAYMENT_ID not in", values, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdBetween(Integer value1, Integer value2) {
            addCriterion("PAYMENT_ID between", value1, value2, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PAYMENT_ID not between", value1, value2, "paymentId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("PROJECT_ID is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("PROJECT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(Integer value) {
            addCriterion("PROJECT_ID =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(Integer value) {
            addCriterion("PROJECT_ID <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(Integer value) {
            addCriterion("PROJECT_ID >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PROJECT_ID >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(Integer value) {
            addCriterion("PROJECT_ID <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("PROJECT_ID <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<Integer> values) {
            addCriterion("PROJECT_ID in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<Integer> values) {
            addCriterion("PROJECT_ID not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("PROJECT_ID between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PROJECT_ID not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeIsNull() {
            addCriterion("PAYMENT_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeIsNotNull() {
            addCriterion("PAYMENT_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeEqualTo(Integer value) {
            addCriterion("PAYMENT_TYPE =", value, "paymentType");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeNotEqualTo(Integer value) {
            addCriterion("PAYMENT_TYPE <>", value, "paymentType");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeGreaterThan(Integer value) {
            addCriterion("PAYMENT_TYPE >", value, "paymentType");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("PAYMENT_TYPE >=", value, "paymentType");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeLessThan(Integer value) {
            addCriterion("PAYMENT_TYPE <", value, "paymentType");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeLessThanOrEqualTo(Integer value) {
            addCriterion("PAYMENT_TYPE <=", value, "paymentType");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeIn(List<Integer> values) {
            addCriterion("PAYMENT_TYPE in", values, "paymentType");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeNotIn(List<Integer> values) {
            addCriterion("PAYMENT_TYPE not in", values, "paymentType");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeBetween(Integer value1, Integer value2) {
            addCriterion("PAYMENT_TYPE between", value1, value2, "paymentType");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("PAYMENT_TYPE not between", value1, value2, "paymentType");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentIsNull() {
            addCriterion("NO_TAX_PAYMENT is null");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentIsNotNull() {
            addCriterion("NO_TAX_PAYMENT is not null");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentEqualTo(BigDecimal value) {
            addCriterion("NO_TAX_PAYMENT =", value, "noTaxPayment");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentNotEqualTo(BigDecimal value) {
            addCriterion("NO_TAX_PAYMENT <>", value, "noTaxPayment");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentGreaterThan(BigDecimal value) {
            addCriterion("NO_TAX_PAYMENT >", value, "noTaxPayment");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("NO_TAX_PAYMENT >=", value, "noTaxPayment");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentLessThan(BigDecimal value) {
            addCriterion("NO_TAX_PAYMENT <", value, "noTaxPayment");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentLessThanOrEqualTo(BigDecimal value) {
            addCriterion("NO_TAX_PAYMENT <=", value, "noTaxPayment");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentIn(List<BigDecimal> values) {
            addCriterion("NO_TAX_PAYMENT in", values, "noTaxPayment");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentNotIn(List<BigDecimal> values) {
            addCriterion("NO_TAX_PAYMENT not in", values, "noTaxPayment");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("NO_TAX_PAYMENT between", value1, value2, "noTaxPayment");
            return (Criteria) this;
        }

        public Criteria andNoTaxPaymentNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("NO_TAX_PAYMENT not between", value1, value2, "noTaxPayment");
            return (Criteria) this;
        }

        public Criteria andTaxRateIsNull() {
            addCriterion("TAX_RATE is null");
            return (Criteria) this;
        }

        public Criteria andTaxRateIsNotNull() {
            addCriterion("TAX_RATE is not null");
            return (Criteria) this;
        }

        public Criteria andTaxRateEqualTo(BigDecimal value) {
            addCriterion("TAX_RATE =", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateNotEqualTo(BigDecimal value) {
            addCriterion("TAX_RATE <>", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateGreaterThan(BigDecimal value) {
            addCriterion("TAX_RATE >", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("TAX_RATE >=", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateLessThan(BigDecimal value) {
            addCriterion("TAX_RATE <", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("TAX_RATE <=", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateIn(List<BigDecimal> values) {
            addCriterion("TAX_RATE in", values, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateNotIn(List<BigDecimal> values) {
            addCriterion("TAX_RATE not in", values, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("TAX_RATE between", value1, value2, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("TAX_RATE not between", value1, value2, "taxRate");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateIsNull() {
            addCriterion("PLAN_PAYMENT_DATE is null");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateIsNotNull() {
            addCriterion("PLAN_PAYMENT_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateEqualTo(Date value) {
            addCriterionForJDBCDate("PLAN_PAYMENT_DATE =", value, "planPaymentDate");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("PLAN_PAYMENT_DATE <>", value, "planPaymentDate");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateGreaterThan(Date value) {
            addCriterionForJDBCDate("PLAN_PAYMENT_DATE >", value, "planPaymentDate");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("PLAN_PAYMENT_DATE >=", value, "planPaymentDate");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateLessThan(Date value) {
            addCriterionForJDBCDate("PLAN_PAYMENT_DATE <", value, "planPaymentDate");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("PLAN_PAYMENT_DATE <=", value, "planPaymentDate");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateIn(List<Date> values) {
            addCriterionForJDBCDate("PLAN_PAYMENT_DATE in", values, "planPaymentDate");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("PLAN_PAYMENT_DATE not in", values, "planPaymentDate");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("PLAN_PAYMENT_DATE between", value1, value2, "planPaymentDate");
            return (Criteria) this;
        }

        public Criteria andPlanPaymentDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("PLAN_PAYMENT_DATE not between", value1, value2, "planPaymentDate");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeIsNull() {
            addCriterion("Allocation_type is null");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeIsNotNull() {
            addCriterion("Allocation_type is not null");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeEqualTo(Integer value) {
            addCriterion("Allocation_type =", value, "allocationType");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeNotEqualTo(Integer value) {
            addCriterion("Allocation_type <>", value, "allocationType");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeGreaterThan(Integer value) {
            addCriterion("Allocation_type >", value, "allocationType");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("Allocation_type >=", value, "allocationType");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeLessThan(Integer value) {
            addCriterion("Allocation_type <", value, "allocationType");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeLessThanOrEqualTo(Integer value) {
            addCriterion("Allocation_type <=", value, "allocationType");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeIn(List<Integer> values) {
            addCriterion("Allocation_type in", values, "allocationType");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeNotIn(List<Integer> values) {
            addCriterion("Allocation_type not in", values, "allocationType");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeBetween(Integer value1, Integer value2) {
            addCriterion("Allocation_type between", value1, value2, "allocationType");
            return (Criteria) this;
        }

        public Criteria andAllocationTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("Allocation_type not between", value1, value2, "allocationType");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioIsNull() {
            addCriterion("Allocation_ratio is null");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioIsNotNull() {
            addCriterion("Allocation_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioEqualTo(BigDecimal value) {
            addCriterion("Allocation_ratio =", value, "allocationRatio");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioNotEqualTo(BigDecimal value) {
            addCriterion("Allocation_ratio <>", value, "allocationRatio");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioGreaterThan(BigDecimal value) {
            addCriterion("Allocation_ratio >", value, "allocationRatio");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("Allocation_ratio >=", value, "allocationRatio");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioLessThan(BigDecimal value) {
            addCriterion("Allocation_ratio <", value, "allocationRatio");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioLessThanOrEqualTo(BigDecimal value) {
            addCriterion("Allocation_ratio <=", value, "allocationRatio");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioIn(List<BigDecimal> values) {
            addCriterion("Allocation_ratio in", values, "allocationRatio");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioNotIn(List<BigDecimal> values) {
            addCriterion("Allocation_ratio not in", values, "allocationRatio");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("Allocation_ratio between", value1, value2, "allocationRatio");
            return (Criteria) this;
        }

        public Criteria andAllocationRatioNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("Allocation_ratio not between", value1, value2, "allocationRatio");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountIsNull() {
            addCriterion("Allocation_amount is null");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountIsNotNull() {
            addCriterion("Allocation_amount is not null");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountEqualTo(BigDecimal value) {
            addCriterion("Allocation_amount =", value, "allocationAmount");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountNotEqualTo(BigDecimal value) {
            addCriterion("Allocation_amount <>", value, "allocationAmount");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountGreaterThan(BigDecimal value) {
            addCriterion("Allocation_amount >", value, "allocationAmount");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("Allocation_amount >=", value, "allocationAmount");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountLessThan(BigDecimal value) {
            addCriterion("Allocation_amount <", value, "allocationAmount");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("Allocation_amount <=", value, "allocationAmount");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountIn(List<BigDecimal> values) {
            addCriterion("Allocation_amount in", values, "allocationAmount");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountNotIn(List<BigDecimal> values) {
            addCriterion("Allocation_amount not in", values, "allocationAmount");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("Allocation_amount between", value1, value2, "allocationAmount");
            return (Criteria) this;
        }

        public Criteria andAllocationAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("Allocation_amount not between", value1, value2, "allocationAmount");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andOperatorIsNull() {
            addCriterion("operator is null");
            return (Criteria) this;
        }

        public Criteria andOperatorIsNotNull() {
            addCriterion("operator is not null");
            return (Criteria) this;
        }

        public Criteria andOperatorEqualTo(String value) {
            addCriterion("operator =", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotEqualTo(String value) {
            addCriterion("operator <>", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorGreaterThan(String value) {
            addCriterion("operator >", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorGreaterThanOrEqualTo(String value) {
            addCriterion("operator >=", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLessThan(String value) {
            addCriterion("operator <", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLessThanOrEqualTo(String value) {
            addCriterion("operator <=", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLike(String value) {
            addCriterion("operator like", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotLike(String value) {
            addCriterion("operator not like", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorIn(List<String> values) {
            addCriterion("operator in", values, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotIn(List<String> values) {
            addCriterion("operator not in", values, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorBetween(String value1, String value2) {
            addCriterion("operator between", value1, value2, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotBetween(String value1, String value2) {
            addCriterion("operator not between", value1, value2, "operator");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterionForJDBCDate("CREATE_DATE >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterionForJDBCDate("CREATE_DATE in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("CREATE_DATE not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATE_DATE between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATE_DATE not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andBillingAmountIsNull() {
            addCriterion("BILLING_AMOUNT is null");
            return (Criteria) this;
        }

        public Criteria andBillingAmountIsNotNull() {
            addCriterion("BILLING_AMOUNT is not null");
            return (Criteria) this;
        }

        public Criteria andBillingAmountEqualTo(BigDecimal value) {
            addCriterion("BILLING_AMOUNT =", value, "billingAmount");
            return (Criteria) this;
        }

        public Criteria andBillingAmountNotEqualTo(BigDecimal value) {
            addCriterion("BILLING_AMOUNT <>", value, "billingAmount");
            return (Criteria) this;
        }

        public Criteria andBillingAmountGreaterThan(BigDecimal value) {
            addCriterion("BILLING_AMOUNT >", value, "billingAmount");
            return (Criteria) this;
        }

        public Criteria andBillingAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("BILLING_AMOUNT >=", value, "billingAmount");
            return (Criteria) this;
        }

        public Criteria andBillingAmountLessThan(BigDecimal value) {
            addCriterion("BILLING_AMOUNT <", value, "billingAmount");
            return (Criteria) this;
        }

        public Criteria andBillingAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("BILLING_AMOUNT <=", value, "billingAmount");
            return (Criteria) this;
        }

        public Criteria andBillingAmountIn(List<BigDecimal> values) {
            addCriterion("BILLING_AMOUNT in", values, "billingAmount");
            return (Criteria) this;
        }

        public Criteria andBillingAmountNotIn(List<BigDecimal> values) {
            addCriterion("BILLING_AMOUNT not in", values, "billingAmount");
            return (Criteria) this;
        }

        public Criteria andBillingAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("BILLING_AMOUNT between", value1, value2, "billingAmount");
            return (Criteria) this;
        }

        public Criteria andBillingAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("BILLING_AMOUNT not between", value1, value2, "billingAmount");
            return (Criteria) this;
        }

        public Criteria andBillingDateIsNull() {
            addCriterion("BILLING_DATE is null");
            return (Criteria) this;
        }

        public Criteria andBillingDateIsNotNull() {
            addCriterion("BILLING_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andBillingDateEqualTo(Date value) {
            addCriterionForJDBCDate("BILLING_DATE =", value, "billingDate");
            return (Criteria) this;
        }

        public Criteria andBillingDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("BILLING_DATE <>", value, "billingDate");
            return (Criteria) this;
        }

        public Criteria andBillingDateGreaterThan(Date value) {
            addCriterionForJDBCDate("BILLING_DATE >", value, "billingDate");
            return (Criteria) this;
        }

        public Criteria andBillingDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("BILLING_DATE >=", value, "billingDate");
            return (Criteria) this;
        }

        public Criteria andBillingDateLessThan(Date value) {
            addCriterionForJDBCDate("BILLING_DATE <", value, "billingDate");
            return (Criteria) this;
        }

        public Criteria andBillingDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("BILLING_DATE <=", value, "billingDate");
            return (Criteria) this;
        }

        public Criteria andBillingDateIn(List<Date> values) {
            addCriterionForJDBCDate("BILLING_DATE in", values, "billingDate");
            return (Criteria) this;
        }

        public Criteria andBillingDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("BILLING_DATE not in", values, "billingDate");
            return (Criteria) this;
        }

        public Criteria andBillingDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("BILLING_DATE between", value1, value2, "billingDate");
            return (Criteria) this;
        }

        public Criteria andBillingDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("BILLING_DATE not between", value1, value2, "billingDate");
            return (Criteria) this;
        }

        public Criteria andRealBillDateIsNull() {
            addCriterion("REAL_BILL_DATE is null");
            return (Criteria) this;
        }

        public Criteria andRealBillDateIsNotNull() {
            addCriterion("REAL_BILL_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andRealBillDateEqualTo(Date value) {
            addCriterionForJDBCDate("REAL_BILL_DATE =", value, "realBillDate");
            return (Criteria) this;
        }

        public Criteria andRealBillDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("REAL_BILL_DATE <>", value, "realBillDate");
            return (Criteria) this;
        }

        public Criteria andRealBillDateGreaterThan(Date value) {
            addCriterionForJDBCDate("REAL_BILL_DATE >", value, "realBillDate");
            return (Criteria) this;
        }

        public Criteria andRealBillDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("REAL_BILL_DATE >=", value, "realBillDate");
            return (Criteria) this;
        }

        public Criteria andRealBillDateLessThan(Date value) {
            addCriterionForJDBCDate("REAL_BILL_DATE <", value, "realBillDate");
            return (Criteria) this;
        }

        public Criteria andRealBillDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("REAL_BILL_DATE <=", value, "realBillDate");
            return (Criteria) this;
        }

        public Criteria andRealBillDateIn(List<Date> values) {
            addCriterionForJDBCDate("REAL_BILL_DATE in", values, "realBillDate");
            return (Criteria) this;
        }

        public Criteria andRealBillDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("REAL_BILL_DATE not in", values, "realBillDate");
            return (Criteria) this;
        }

        public Criteria andRealBillDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("REAL_BILL_DATE between", value1, value2, "realBillDate");
            return (Criteria) this;
        }

        public Criteria andRealBillDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("REAL_BILL_DATE not between", value1, value2, "realBillDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}